package com.coll;

import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;

/**
 * @ClassName Link
 * @Description
 * @Author xinggh
 * @Date 2020/8/24 16:32
 * @Version 1.0
 **/
public class Link {

    public static void main(String[] args) {

        LinkedHashMap<Integer, Integer> linkedHashMap = new LinkedHashMap();
        linkedHashMap.put(1, 1);
        linkedHashMap.put(2, 2);
        linkedHashMap.put(3, 3);
        Iterator iterator = linkedHashMap.entrySet().iterator();
        for (Map.Entry<Integer, Integer> entry : linkedHashMap.entrySet()) {
            System.out.println(entry.getKey() + entry.getValue());
        }

        Link link = new Link();
        Class<? extends Link> aClass = link.getClass();
        try {

            Class.forName("com.coll.Link");
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }
    }
}
